package com.mvp.shq.washer.ui.login;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.TokenBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/19.
 */

public interface LoginConstract {
    interface Model extends BaseModel{
        Observable<BaseResult<TokenBean>> login(String mobile, String pwd, String timestamp, String sign);
    };
    interface View extends BaseView{
        void loginSuccess();
        void loginFail(String msg);
    };
    public abstract class Presenter extends BasePresenter<Model,View>{
        abstract void login(String mobile,String pwd);

    }
}
